Allows to export and import content through their declaration files. More...
Static Public Member Functions | |
static nkExport::ExporterLoadResult | inputData (const std::string_view &filePath) |
static nkExport::ExporterLoadResult | inputDataSources (const std::string_view &sources) |
static bool | outputData (const std::string_view &content, const std::string_view &path) |
static bool | saveObjectDeclaration (nkExport::Exportable *object, const std::string_view &pathFromData) |
static Component * | loadComponentDeclaration (const char *pathFromData) |
static Component * | processComponentSources (const char *sources) |
static Component * | processComponentTree (nkExport::Node *tree) |
static Layout * | loadLayoutDeclaration (const char *pathFromData) |
static Layout * | processLayoutSources (const char *sources) |
static Layout * | processLayoutTree (nkExport::Node *tree) |
static Component * | loadInterfaceDeclaration (const char *pathFromData) |
static Component * | processInterfaceSources (const char *sources) |
static Component * | processInterfaceTree (nkExport::Node *tree) |
Allows to export and import content through their declaration files.
|
static |
Inputs data from a file and returns associated tree, if parsing can occur. It will use Json parsing.
filePath | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
|
static |
Inputs data from memory and returns associated tree, if parsing can occur. It will use Json parsing.
sources | The sources to parse. |
|
static |
Writes data to a file.
content | The content to write. |
path | The path, relative to working directory, to output the file to. See nkResources::ResourceManager for path naming convention. |
|
static |
Saves an exportable into a file.
object | The object to serialize and export. |
pathFromData | The path, relative to working directory, to output the file to. See nkResources::ResourceManager for path naming convention. |
|
static |
Loads a component declaration, from a file.
pathFromData | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
|
static |
Loads a component declaration, from memory.
sources | The memory chunk to interpret. |
|
static |
Loads a component declaration, from an existing tree.
tree | The tree to interpret. |
|
static |
Loads a Layout declaration, from a file.
pathFromData | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
|
static |
|
static |
|
static |
Loads a interface (Component mixed with Layout) declaration, from a file.
pathFromData | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
|
static |
|
static |